package items;

import model.Entity;
import android.framework.binding.BindableString;
import android.framework.binding.Item;
import android.widget.ImageView;

public class EntityItem extends Item{

	private BindableString entityName = new BindableString();
	private ImageView entityImage;
	private BindableString centeralTextView = new BindableString();
	private int rightImageButton;
	private Entity entity;
	
	public String toString(){
		return entityName.getText().toString();
	}
	
	
	public EntityItem(Entity entity) {
		this.entity = entity;
		this.getEntityName().setText(entity.getEntityName().getText());
	}
	
	public Entity getEntity(){
		return entity;
	}

	public ImageView getEntityImage() {
		return entityImage;
	}


	public void setEntityImage(ImageView entityImage) {
		this.entityImage = entityImage;
	}




	public BindableString getCenteralTextView() {
		return centeralTextView;
	}




	public void setCenteralTextView(BindableString centeralTextView) {
		this.centeralTextView = centeralTextView;
	}




	public BindableString getEntityName() {
		return entityName;
	}




	public void setEntityName(BindableString entityName) {
		this.entityName = entityName;
	}

	public int getRightImageButton() {
		return rightImageButton;
	}

	public void setRightImageButton(int rightImageButton) {
		this.rightImageButton = rightImageButton;
	}

}
